package demo1;

import java.util.ArrayList;

import java.util.Random;

public class Manager extends user{
	public Manager(String username, int moeny) {
		super(username,moeny);
	}
	public Manager() {
	}
	
	public static ArrayList<Integer> send(int sum, int count) {  
		ArrayList<Integer> numbers = new ArrayList<>();  
        Random random = new Random();  
        int remainingSum;  
        int j=count; 
        for (int i = 0; i < j - 1; i++) {
        	remainingSum=(sum/count)*2;
            int next = random.nextInt(remainingSum);  
            numbers.add(next);
            sum-=next;
           
            count--;
             
        }  
  
        numbers.add(sum);  
        return numbers;  
    }  
	/*for (int i=0;i<cout-1;i++){
	*
	*
	*
	*/
}

